package com.xbh.management.enums;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2022-02-28 17:00
 */

public enum LeaveTypeEnum {
    /**
     * (1年假，2事假，3病假，4调休假，5婚假，6产假，7陪产假，8其他)
     */
    ANNUAL_LEAVE(1,"年假"),
    PRIVATE_AFFAIR_LEAVE(2,"事假"),
    SICK_LEAVE(3,"病假"),
    ADJUSTABLE_VACATION(4,"调休假"),
    MARRIAGE_LEAVE(5,"婚假"),
    MATERNTTY_LEAVE(6,"产假"),
    PATERNITY_LEAVE(7,"陪产假"),
    OTHER(8,"其他");

    private int code;
    private String name;
    private LeaveTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }
    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
